function getByClass(obj, sClass) {
  var aResult = [];
  var aEle = obj.getElementsByName('*');

  for (var i = 0; i < aEle.length; i++) {
    if (aEle[i].className == sClass) {
      aResult.push(aEle[i]);
    }
  }

  return aResult;
}

function getStyle(obj, name) {
  if (obj.currentStyle) {
    return obj.currentStyle[name];
  } else {
    return getComputedStyle(obj, false)[name];
  }
}
